package org.example.coffeeshoporderingsystem.product.service.impl;


import org.example.coffeeshoporderingsystem.common.service.impl.BaseServiceImpl;
import org.example.coffeeshoporderingsystem.product.dao.ProductDAO;
import org.example.coffeeshoporderingsystem.product.entity.Product;
import org.example.coffeeshoporderingsystem.product.service.ProductService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ProductServiceImpl extends BaseServiceImpl<Product, ProductDAO> implements ProductService {
    @Override
    public List<Product> findByCategoryId(Integer categoryId) {
        return baseDAO.selectByCategoryId(categoryId);
    }
}
